package com.deyuanyun.pic.pipe.service.impl;

import com.deyuanyun.pic.pipe.domain.CenterLine;
import com.deyuanyun.pic.pipe.mapper.dao.PipeCenterLineDao;
import com.deyuanyun.pic.pipe.service.PipeCenterLineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 
 * @author lijun
 * @date 2016-07-07
 * 
 * History: [修改人][时间][修改描述]
 */

@Service
public class PipeCenterLineServiceImpl implements PipeCenterLineService{

    @Resource
    private PipeCenterLineDao pipeCenterLineDao;

    @Override
    public CenterLine getCenterLineByLineId(String lineId) {

        return pipeCenterLineDao.getCenterLineByLineId(lineId);
    }

    @Override
    public CenterLine getCenterLineByDefectId(String defectId) {
        return pipeCenterLineDao.getCenterLineByDefectId(defectId);
    }

    @Override
    public CenterLine queryLineGisIdByTaskId(String taskId) {
        return  pipeCenterLineDao.queryLineGisIdByTaskId(taskId);
    }
}
